]> dgit.raspbian.org Git - gnome-shell.git/commit
dnd: Implement touch event support
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 16 Oct 2015 16:28:11 +0000 (18:28 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 4 Dec 2015 10:50:13 +0000 (11:50 +0100)
commit508a13ae72201dbd5db0d32d3935c2a23d9946a6
tree08353cd618a17ef8bacaaa1012f409a9fd39c58a
parentc0b50cbdf2a73ef963c8e0e36447eedc78b51008
dnd: Implement touch event support

We need to keep track of the pointer emulating touch sequence. In order
to have events properly redirected on touch devices, the
Clutter.grab_pointer and ungrab_pointer() have been replaced by the grab()
and grab_sequence() ClutterInputDevice methods, one or the other is used
depending on the device triggering DnD.

An extra "sequence" argument has been added to startDrag, passing null here
will resort to pointer grabs.

This is enough to make thumbnails in the WorkspaceBox draggable through
touch.

https://bugzilla.gnome.org/show_bug.cgi?id=756748
js/ui/dnd.js